package cn.csddxt.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import cn.csddxt.util.MybatisUtile;

public class Bill implements Serializable {
	private Integer id; // id
	private String billCode; // 账单编码
	private String productName; // 商品名称
	private String productDesc; // 商品描述
	private String productUnit; // 商品单位
	private BigDecimal productCount; // 商品数量
	private BigDecimal totalPrice; // 总金�?
	private Integer isPayment; // 是否支付
	private Integer providerId; // 供应商ID
	private Integer createdBy; // 创建�?
	private Date creationDate; // 创建时间
	private Integer modifyBy; // 更新�?
	private Date modifyDate;// 更新时间
	private String creatDate;// 创建时间
	private String providerName;// 供应商名�?
	String isPaymentst;// 是否支付

	public String getIsPaymentst() {
		return isPaymentst;
	}

	public void setIsPaymentst(String isPaymentst) {
		this.isPaymentst = isPaymentst;
	}

	public String getProviderName() {
		return providerName;
	}

	public void setProviderName(String providerName) {
		this.providerName = providerName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getBillCode() {
		return billCode;
	}

	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductDesc() {
		return productDesc;
	}

	public void setProductDesc(String productDesc) {
		this.productDesc = productDesc;
	}

	public String getProductUnit() {
		return productUnit;
	}

	public void setProductUnit(String productUnit) {
		this.productUnit = productUnit;
	}

	public BigDecimal getProductCount() {
		return productCount;
	}

	public void setProductCount(BigDecimal productCount) {
		this.productCount = productCount;
	}

	public BigDecimal getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Integer getIsPayment() {
		return isPayment;
	}

	public void setIsPayment(Integer isPayment) {
		if (isPayment > 1) {
			this.isPaymentst = "已付款";

		} else {
			this.isPaymentst = "未付款";
		}

		this.isPayment = isPayment;
	}

	public Integer getProviderId() {
		return providerId;
	}

	public void setProviderId(Integer providerId) {
		this.providerId = providerId;
	}

	public Integer getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(Integer createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creatDate = MybatisUtile.datestring(creationDate);

		this.creationDate = creationDate;
	}

	public String getCreatDate() {
		return creatDate;
	}

	public void setCreatDate(String creatDate) {
		this.creatDate = creatDate;
	}

	public Integer getModifyBy() {
		return modifyBy;
	}

	public void setModifyBy(Integer modifyBy) {
		this.modifyBy = modifyBy;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

}
